package com.factory._02method;

import com.factory._01simple.inter.Fruit;

/**
 * 工厂方法模式
 * @author Qinye
 * @date 2023/8/10 22:57
 */
public class Test {
    public static void main(String[] args) {
        AppleGardener ag = new AppleGardener();
        Fruit apple = ag.factory();

        StrawberryGardener sg = new StrawberryGardener();
        Fruit strawberry = sg.factory();

        GrapeGrdener gg = new GrapeGrdener();
        Fruit grape = gg.factory();
    }
}
